package com.sourceQ.system.controller.message.sms;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sourceQ.common.core.web.controller.BaseController;
import com.sourceQ.common.core.web.domain.AjaxResult;
import com.sourceQ.common.log.annotation.Log;
import com.sourceQ.common.log.enums.BusinessType;
import com.sourceQ.system.dto.message.SmsLogPageReqDTO;
import com.sourceQ.system.service.message.sms.SysSmsLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sms-log")
@Api(tags = "短信记录")
public class SmsLogController extends BaseController {
    @Autowired
    private SysSmsLogService smsLogService;

    @GetMapping("/page")
    @Log(title = "短信记录",businessType = BusinessType.QUERY)
    @ApiOperation("短信记录-查询")
    public AjaxResult page(Page page, SmsLogPageReqDTO pageReqVO){
        return success(smsLogService.getSmsLogPage(page, pageReqVO));
    }
}
